\usepackage[a4paper, left=1.5cm,top=2cm,right=1.5cm,bottom=2cm]{geometry}

\usepackage{newunicodechar}
\newunicodechar{ }{\nobreakspace{}}

\usepackage{amsmath}
\usepackage{color}
%\usepackage{fancyhdr}
\usepackage{fixltx2e}

%get rid of hanging lines
\widowpenalty=1000
\clubpenalty=1000
\renewcommand{\textfraction}{0.05}
\renewcommand{\topfraction}{0.95}
\renewcommand{\bottomfraction}{0.95}
\renewcommand{\floatpagefraction}{0.95}
\setcounter{totalnumber}{5}
\setlength{\fboxsep}{12pt}
\setcounter{errorcontextlines}{999}
%\setlength{\parskip}{0cm}

\setlength{\headheight}{16pt}
%\fancyhf{}
%\fancyhead{}
%\fancyhead[RO]{\thepage}
%\fancyhead[LO]{\textsl\rightmark}
%\fancyfoot{}
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}

%\usepackage[xetex,
%  pdftitle={Bio-Formats Documentation},
%  pdfauthor={The Open Microscopy Environment},
%  pdfsubject={Microscopy},
%  pdfkeywords={Bio-Formats, OME, Microscopy},
%  raiselinks,
%  bookmarks,
%  pdfstartview={FitH}]
%{hyperref}

\usepackage{mathspec}

\usepackage{xunicode}
\usepackage{xltxtra}
\usepackage{polyglossia}
\defaultfontfeatures{Mapping=tex-text}
\setmainfont{TeX Gyre Termes}
\setromanfont{TeX Gyre Termes}
\setsansfont{TeX Gyre Heros}
\setmonofont{TeX Gyre Cursor}
\setmathsfont{TeX Gyre Termes Math}
\setdefaultlanguage{english}
